package com.efivestar.idm.api.exception;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Data
public class AppException extends RuntimeException {
    private String code;
    private String message;

    public AppException(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public AppException(String code, String message, String message1) {
        super(message);
        this.code = code;
        this.message = message1;
    }

    public AppException(String code, String message, Throwable throwable) {
        super(message, throwable);
        this.code = code;
        this.message = message;
    }

    public AppException(String code, String message, Throwable cause, String message1) {
        super(message, cause);
        this.code = code;
        this.message = message1;
    }


    public AppException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, String code, String message1) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.message = message1;
    }
}
